package org.lanqiao.ssm.common.core.facede.base;

import java.io.Serializable;

import org.lanqiao.ssm.common.core.service.BaseServiceI;
import org.lanqiao.ssm.common.facede.BaseQueryFacedeI;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.github.pagehelper.PageInfo;

public abstract class BaseQueryFacede<E, ID extends Serializable> implements BaseQueryFacedeI<E, ID> {
	protected final Logger logger = LoggerFactory.getLogger(getClass());

	public abstract BaseServiceI<E, ID> getService();

	public E selectByPrimaryKey(ID id) {
		return getService().selectByPrimaryKey(id);
	}

	public PageInfo<E> findObjectsByPage(E record, int page, int pageShow) {
		return getService().findObjectsByPage(record, page, pageShow);
	}

}
